home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
v7n20.arc
/
ENV720.ARC
/
FIGURE9.C
< prev
next >
Wrap
Text File
|
1988-10-29
|
527b
|
18 lines
VOID DrawIt (HPS hps, SHORT cxClient, SHORT cyClient)
{
RECTL rcl ;
SHORT x1, x2, y1, y2 ;
x1 = rand() % cxClient ;
x2 = rand() % cxClient ;
y1 = rand() % cyClient ;
y2 = rand() % cyClient ;
rcl.xLeft = min (x1, x2) ; // Lower left corner
rcl.yBottom = min (y1, y2) ;
rcl.xRight = max (x1, x2) ; // Upper right corner
rcl.yTop = max (y1, y2) ;
WinFillRect (hps, &rcl, (LONG) (rand() % 16)) ;
}